import myaxios from "@/myaxios/myaxios"
import URL_ENV from "@/myaxios/BaseUrl"
let BMDURL = URL_ENV.BMDURL

const GerenZhongxin = {

   
   // 查询 通过id查询个人信息
   genRenxinxi(params) {
    let url = BMDURL + "/yonghu?id=" + params;
    return myaxios.get(url, params);
  },
   //通过id查询全部订单
   quanBudingdan(params) {
    let url = BMDURL + "/chanpin?id=" + params;
    return myaxios.get(url, params);
  },
  querydingdanByid(params) {
    let url = BMDURL + "/dingdan?id=" + params;
    return myaxios.get(url, params);
  },
  querydaifukuanByid(params) {
    let url = BMDURL + "/gouwuche?id=" + params;
    return myaxios.get(url, params);
  },
  //通过id查询用户信息
  miMa(params) {
    let url = BMDURL + "/yonghu?id=" + params;
    return myaxios.get(url, params);
  },
  //通过id修改密码
  xiugai(params) {
    let url = BMDURL + "/yonghu/" + params.id;
    return myaxios.put(url, params);
  },

  //通过id查询收货地址
  shouHuo(params) {
    let url = BMDURL + "/yonghu?id=" + params;
    return myaxios.get(url, params);
  },

  //修改收货地址
  xiuGaishouHuo(params) {
    let url = BMDURL + "/yonghu/" + params.id;
    return myaxios.put(url, params);
  },
  };
  
  export default GerenZhongxin
  